package com.epic.followup.model.app;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EntityListeners;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.springframework.data.jpa.domain.support.AuditingEntityListener;


/**
 * APP用户表
 * @author : lgg
 * @version V1.0
 */

@Entity
@Table(name = "app_patient")
@EntityListeners(AuditingEntityListener.class)
public class AppPatientModel {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id", nullable = false, columnDefinition = "BIGINT COMMENT 'app_user主键'")
    private Long Id;

    // 用户昵称
    @Column(name = "username", length = 32, nullable = true)
    private String userName;

    // 创建时间
    @Column(name = "create_time", length = 128,nullable = true)
    private String createTime;

    // 平台密码
    @Column(name = "password", length = 32, nullable = true)
    private String password;

    // 电话号码
    @Column(name = "tel", length = 11, nullable = true)
    private String tel;

    // 个性签名
//    @Column(name = "diysignature",length = 255, nullable = true)
//    private String diySignature;

    // 头像
    @Column(name = "img",length = 128, nullable = true)
    private String img;

    // 性别
    @Column(name = "gender",length = 32, nullable = true)
    private String gender;

    // 出生日期
    @Column(name = "birth",length = 128, nullable = true)
    private String birth;

    // 是否为学生
    @Column(name = "is_student",length = 10, nullable = true)
    private String isStudent;

//    // 年龄
//    @Column(name = "age", length = 32, nullable = true)
//    private String age;

    // 学校
    @Column(name = "university", length = 128, nullable = true)
    private String university;

    // 学院
    @Column(name = "college", length = 128, nullable = true)
    private String college;

    // 专业
    @Column(name = "major", length = 128, nullable = true)
    private String major;

    // 用户类型
    @Column(name = "user_type", length = 32,nullable = true)
    private String userType;

    // 疾病类型
    @Column(name = "disease_type", length = 32,nullable = true)
    private String diseaseType;

    // 状态
    @Column(name = "psycho_status", length = 32,nullable = true)
    private String psychoStatus;

    // 医院
    @Column(name = "hospital", length = 128, nullable = true)
    private String hospital;

    // 科室
    @Column(name = "department", length = 128, nullable = true)
    private String department;

    // 医生
    @Column(name = "therapist", length = 128, nullable = true)
    private String therapist;

    // 职业
    @Column(name = "occupation",length = 64, nullable = true)
    private String occupation;

    // 职业
    @Column(name = "occupation_type",length = 64, nullable = true)
    private String occupationType;

    // openid
    @Column(name = "openid",length = 128, nullable = true)
    private String openId;


    public Long getId() {
        return Id;
    }

    public void setId(Long id) {
        Id = id;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getBirth() {
        return birth;
    }

    public void setBirth(String birth) {
        this.birth = birth;
    }

    public String getIsStudent() {
        return isStudent;
    }

    public void setIsStudent(String isStudent) {
        this.isStudent = isStudent;
    }

    public String getUniversity() {
        return university;
    }

    public void setUniversity(String university) {
        this.university = university;
    }

    public String getCollege() {
        return college;
    }

    public void setCollege(String college) {
        this.college = college;
    }

    public String getMajor() {
        return major;
    }

    public void setMajor(String major) {
        this.major = major;
    }

    public String getUserType() {
        return userType;
    }

    public void setUserType(String userType) {
        this.userType = userType;
    }

    public String getDiseaseType() {
        return diseaseType;
    }

    public void setDiseaseType(String diseaseType) {
        this.diseaseType = diseaseType;
    }

    public String getPsychoStatus() {
        return psychoStatus;
    }

    public void setPsychoStatus(String psychoStatus) {
        this.psychoStatus = psychoStatus;
    }

    public String getHospital() {
        return hospital;
    }

    public void setHospital(String hospital) {
        this.hospital = hospital;
    }

    public String getDepartment() {
        return department;
    }

    public void setDepartment(String department) {
        this.department = department;
    }

    public String getTherapist() {
        return therapist;
    }

    public void setTherapist(String therapist) {
        this.therapist = therapist;
    }

    public String getOccupation() {
        return occupation;
    }

    public void setOccupation(String occupation) {
        this.occupation = occupation;
    }

    public String getOccupationType() {
        return occupationType;
    }

    public void setOccupationType(String occupationType) {
        this.occupationType = occupationType;
    }

    public String getOpenId() {
        return openId;
    }

    public void setOpenId(String openId) {
        this.openId = openId;
    }
}
